package com.nidu.demo.auth.model;

import com.nidu.demo.log.model.LoginLog;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.context.ApplicationEvent;

/**
 * 登录事件
 *
 * @author auto
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class LoginEvent extends ApplicationEvent {

    LoginLog loginLog;

    public LoginEvent(Object source) {
        super(source);
    }

    public LoginEvent(Object source, LoginLog loginLog) {
        super(source);
        this.loginLog = loginLog;
    }
}
